#字符串格式化存在的意义
"""
name = input('姓名：')
do = input('在干什么：')
template = "%s在教室，%s." %(name,do)


print(template)
"""
#直接做占位符
# template = "我是%s，年龄%s，职业%s." %("alex","73","讲鸡汤",)
# print(template)


# template = "我是%s，年龄%d，职业%s." %("alex","73","讲鸡汤",)
# print(template)


# name = 'alex'
# template = "%s现在手机%的电量是100%%" %(name,)
# print(template)

#练习
name = input('请输入姓名：')
age = input('请输入年龄：')
job = input('请输入职业：')
hobby = input('请输入爱好：')
msg = '''
-----------info of Alex Li -------------
  Name  : %s
  Age   : %s
  Job   : %s
  Hobbie: %s
------------      end      ------------'''
data = msg %(name,age,job,hobby,)
print(data)